//
//  BKPhotoView.m
//  baokaodaxue
//
//  Created by dangyangyang on 15/6/11.
//  Copyright (c) 2015年 宏图教育. All rights reserved.
//

#import "BKPhotoView.h"

@implementation BKPhotoView


- (void)awakeFromNib{

    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(p_remove)];
    [self addGestureRecognizer:tap];
    
}

- (void)p_remove{
    
    
    __weak BKPhotoView *weakSelf = self;
    [UIView animateWithDuration:.9 animations:^{
        [weakSelf setFrame:_newFrame] ;
    } completion:^(BOOL finished) {
        [weakSelf removeFromSuperview];
    }];
    
   
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
